package com.hexiang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hexiang.data.split.annotation.DataSplitTag;
import com.hexiang.data.split.constants.DataSplitConstant;
import com.hexiang.entity.Order;
import com.hexiang.mapper.OrderMapper;
import com.hexiang.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * @Title class OrderServiceImpl
 */
@Service
@Slf4j
@DataSplitTag
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Override
    @DataSplitTag(DataSplitConstant.ALL)
    public IPage<Order> pageAllOrder(IPage<Order> page) {
        return page(page);
    }

    @Override
    @DataSplitTag(DataSplitConstant.COLD)
    public IPage<Order> pageColdOrder(IPage<Order> page) {
        return page(page);
    }
}
